<div ng-controller="GroupViewCtrl">
    <div>
        <script type="text/ng-template" id="nodes_renderer.html">
            <div ui-tree-handle class="tree-node tree-node-content">
                <add-node-info node-value="node" node-type="'view'"></add-node-info>
            </div>
        </script>
        <script type="text/ng-template" id="list_renderer.html">
            <ol ui-tree-nodes ng-model="subNode.data">
                <li ng-repeat="node in subNode.data" ui-tree-node ng-include="'nodes_renderer.html'"></li>
            </ol>
        </script>
        <div ng-if="content.type.data" ui-tree id="tree-root">
            <ol ui-tree-nodes ng-model="content.type.data">
                <li ng-repeat="node in content.type.data" ui-tree-node ng-include="'nodes_renderer.html'"></li>
            </ol>
        </div>
        <div ng-if="!content.type.data">
            <add-node-info node-value="content" node-type="'view'"></add-node-info>
        </div>

    </div>
</div>